﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace VisionCloud.Core.Model.Sys
{
    [Table("SysUserProject")]
    public class SysUserProject
    {
        [Key]
        [Column(TypeName = "uuid")]
        [DatabaseGenerated(DatabaseGeneratedOption.None)]
        public Guid UserProjectId { get; set; }

        [Column(TypeName = "uuid")]
        public Guid UserId { get; set; }

        [Column(TypeName = "uuid")]
        public Guid ProjectId { get; set; }

        [Column(TypeName = "timestamp", Order = 1003)]
        public DateTime LastUpdatedDate { get; set; } = DateTime.Now;

        [Column(TypeName = "uuid")]
        public Guid CreatedBy { get; set; }

        [Column(TypeName = "timestamp", Order = 1003)]
        public DateTime CreatedDate { get; set; } = DateTime.Now;

        public Ms.MsProject Project { get; set; }
    }
}